<?
$action = new Action();
class Action
{
	function Action()
	{
		global $gSmarty,$gAct,$_SESSION;
		if($_SESSION['adminUser']['roleId']==3)
		{
			//$gSmarty->display("main/.tpl");
			echo "<script>window.location='?act=main';</script>";
		}
		else
		{
		$gSmarty->display($gAct.".tpl");
		}
	}
}
?>